<?php

//require("head.html"); exit();

define('WP_USE_THEMES', true);

global $more_article;

$blog='NULL';
$blogdata='NULL';
$optiondomain = 'system';
$_REQUEST['b']='system';

require('private.php');
require(CONFIGPATH . 'wp-config.php');
require_once( ABSPATH . WPINC . '/registration-functions.php');

require('portal.lib');

$time_begin=date("u");


get_currentuserinfo();
$SITE_TITLE = get_settings('site_title');

if($_GET["refresh"]){
	wp_portal_cache("all");
        header("Location: http://www.xys-reader.org/blogs\n\n");	
	exit();
}

if($_GET["CAT_NAME"]){
		$line->cat_name=urldecode($_GET["CAT_NAME"]);
		$line->cat_name=stripslashes($line->cat_name);
		$catalog[0]=$line;
		$record_num=30;	
		$more_article=1;
}



?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="shortcut icon" href="/blogs/xys/favicon.ico" type="image/x-icon" />
<title><?php echo $SITE_TITLE ?>(Beta)</title>

<link rel="stylesheet" href="<?php echo WEBROOT ?>/wp-content/portal/style.css" type="text/css" media="screen" />

<META NAME='KEYWORDS' CONTENT='新语丝读者网 博客'/>

<META NAME="description" content="新语丝读者网博客是新语丝读者网提供的博客服务。">
<style type="text/css" media="screen">
</style>
</head>
<body>

<?php

//if(! preg_match( "/(.*)http(.*)/",$_SERVER["HTTP_USER_AGENT"]) && ! $_GET["test"]==1 )
//{ //Disallow robot

?>


<?php 

if ($user_identity) { ?>
<div id="status">
	<div class="description"><?php  echo "logged in as <em>$user_identity</em>"?> [<a href="login?action=logout">Log Out</a>]</div>
Lyceum
</div>
<?php } else { ?>
<div id="status" class="closed">&nbsp;</div>
<?php } ?>

<table border=0 align=center width=900 class="mybody">
<tr>
<td>

<div id="page">

<div id="header" style="background-image:url('./xys/xys-reader-logo.png');
background-repeat: no-repeat;" align="right">

<?php 
require("./portal_cache.html");
?>


</td>
</tr>
</table>


</body>
</html>
